<template>
  <div class="data-list">
    <div class="empty-state">
      <div><i class="el-icon-document"></i></div>
      <div>暂无数据</div>
    </div>
  </div>
</template>

<script>
import DataCard from './DataCard.vue';

export default {
  name: 'DataList',
  
  components: {
    DataCard
  },
  
  props: {
    dataList: {
      type: Array,
      default: () => []
    }
  }
};
</script>

<style scoped>
.data-list {
  flex: 1;
  overflow-y: auto;
  padding: 80px 15px 20px;
  -webkit-overflow-scrolling: touch;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state i {
  font-size: 60px;
  color: #ddd;
  margin-bottom: 15px;
  display: block;
}
</style>

